|
EFFECT EXIST
This command will return a value of one if the specified FX effect exists.
Return Integer=EFFECT EXIST(Effect Number)
Effect Number
Integer
The effect number
This command will return a value of one if the specified FX effect exists
If an attempt was made to LOAD EFFECT and the load fails, no runtime error is presented. Use this command to determine if an effect was loaded successfully. Given the nature of FX files, failures can occur often when loading so use of this command is highly recommended.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
cd "fx\bubble"
load effect "bubble.fx",1,1
load object "sphere.x",1
if effect exist(1)=1 then set object effect 1,1
position object 1,0,0,0
SET EFFECT TRANSPOSE 1,0
while mouseclick()=0:sync:endwhile
while mouseclick()=1:endwhile
delete object 1
delete effect 1
end
BASIC3D Commands Menu
Index
|